package com.sheng.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

//声明主配置文件
@Configuration
//扫描包下类
@ComponentScan("com.sheng")
//加载配置文件
@PropertySource("classpath:jdbc.properties")
//导入第3放配置文件
@Import({JDBCConfig.class,MyBatisConfig.class})
public class SpringConfig {
}
